# 配置信息
REGISTRY_HOST=registry.cn-hangzhou.aliyuncs.com
REGISTRY_OWNER=aliyun6838940388
REGISTRY_PASSWORD=hfcn1224
REGISTRY_NAME_PLACE=docker-huanngfu
IMAGE_NAME=bledemo

# 登录
docker login -u $REGISTRY_OWNER -p $REGISTRY_PASSWORD $REGISTRY_HOST

# 构建最新版本镜像
TAG=latest
LATEST=$REGISTRY_HOST/$REGISTRY_NAME_PLACE/$IMAGE_NAME:$TAG
echo ">>>>> 开始构建镜像：$LATEST"
docker build -t $LATEST .
docker push $LATEST
